<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>项目信息</title>
</head>
<body>
   <center>
   	<h2>项目信息表</h2>
	<s:debug></s:debug>
	 <s:form action="adminAction!updateProject" method="post">
	 <s:set name="user" value="#request.project"/>
	<table border="1">
		<!--<s:textfield name="name" value="%{#user.name}"/> 
		--><tr>
			<!--<td>项目ID</td>
			--><td><s:textfield label="项目ID" name="project.pid" value="%{#user.pid}" readonly="true"/></td>
		</tr>
		<tr>
			<!--<td width="80">项目名</td>
			--><td><s:textfield label="项目名" name="project.name" value="%{#user.name}" />
		</tr>
		<tr>
			<!--<td width="80">教师tchId</td>
			--><td><s:textfield label="教师编号" name="project.tchId" value="%{#user.tchId}" readonly="true"/>
		</tr>
		<tr>
			<!--<td>状态</td>
			--><td><!--<s:textfield label="状态" name="project.status" value="%{#user.status}"/>
			--><s:radio label="状态" name="project.status" list="#{'apply':'报名中','ing':'正在进行','over':'已结束'}" value="%{#user.status}" ></s:radio>
		</td>
		</tr>
		<tr>
			<!--<td>开始时间</td>
			--><td><s:textfield label="开始时间" name="project.startTime" value="%{#user.startTime}"/></td>
		</tr>
		<tr>
			<!--<td>报名截止时间</td>
			--><td><s:textfield label="报名截止时间" name="project.endtTime" value="%{#user.endtTime}"/></td>
		</tr>
		<tr>
			<!--<td>领域</td>
			--><td><s:textfield label="领域" name="project.field" value="%{#user.field}"/></td>
		</tr>
		<tr>
			<!--<td>项目简介</td>
			--><td><s:textfield label="项目简介" name="project.introduce" value="%{#user.introduce}"/></td>
		</tr>
		<tr>
			<!--<td>周期</td>
			--><td><s:textfield label="周期" name="project.period" value="%{#user.period}"/></td>
		</tr>
		<tr>
			<!--<td>实验室</td>
			--><td><s:textfield label="实验室" name="project.achievement" value="%{#user.achievement}"/></td>
		</tr>
		<tr>
			<!--<td>工作地点</td>
			--><td><s:textfield label="工作地点" name="project.workplace" value="%{#user.workplace}"/></td>
		</tr>
		<tr>
			<!--<td>项目薪酬</td>
			--><td><s:textfield label="项目薪酬" name="project.payment" value="%{#user.payment}"/></td>
		</tr>
		<tr>
			<!--<td>招收标准</td>
			--><td><s:textfield label="招收标准" name="project.demand" value="%{#user.demand}"/></td>
		</tr>
		<tr>
			<!--<td>是否签订合同</td>
			--><td><!--<s:textfield label="是否签订合同" name="project.isContract" value="%{#user.isContract}"/></td>
			 --><s:radio label="是否签订合同" name="project.isContract" list="#{'no':'否','yes':'是','toface':'面议'}" value="%{#user.isContract}" ></s:radio></td>
		</tr>
		<tr>
			<!--<td>项目级别</td>
			--><td><s:textfield label="项目级别" name="project.levels" value="%{#user.levels}"/></td>
		</tr>
		
	</table>
	<!--<s:hidden name="project.tchId" value="%{#user.tchId}" />
	--><s:submit label="保存"></s:submit>
   </s:form>
	<s:if test="#session.usertype.equals('student')">
			<a href="projectAction!getOneProjectInfo?Pid=<s:property value='#project.pid'/>&gowhere=apply">申请项目</a>
		</s:if>	
   </center>
</body>
</html>